package cn.wind.xboot.logic.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商户账户
 * </p>
 *
 * @author wind
 * @since 2018-12-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_cli_account")
public class CliAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商户用户id
     */
    private Long cliId;

    /**
     * 账户余额
     */
    private BigDecimal bal;

    /**
     * 冻结金额
     */
    private BigDecimal freeze;

    /**
     * 历史收入
     */
    private BigDecimal historyBal;

    private Long createBy;

    private Date createTime;

    private Long updateBy;

    private Date updateTime;


}
